#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/wait.h>

int main(int argc,char **argv)
{
	char          line[100];
	FILE          *fpin;

	if((fpin = popen("15-14","r")) == NULL)
		printf("popen error\n");
	for(;;)
	{
		fputs("prompt> ",stdout);
		fflush(stdout);
		if(fgets(line,100,fpin) == NULL)
			break;
		if(fputs(line,stdout) == EOF)
			printf("fputs error\n");

	}
	if(pclose(fpin) == -1)
		printf("pclose error\n");
	putchar('\n');
	exit(0);
}
